package csw;

import java.util.Scanner;

public class J09Circle {

	public static void main(String[] args) {
		// 메소드 이용하여 작성 원의 넓이,둘레 계산
		double radius[] = new double[2];
		double Area[] = new double[2];
		double perimeter[] = new double[2];
		double PI = 3.14;
		
		inputCircle(radius);
		getArea(Area,radius,PI);
		getperimeter(perimeter,radius,PI);
		
		System.out.println(radius[1]);
		System.out.println(Area[1]);
		System.out.println(perimeter[1]);
		
	}
	
	public static void inputCircle(
			double radius[]){
		
		Scanner sc = new Scanner(System.in);
		System.out.println("반지름은?");
		radius[1] = sc.nextDouble();
		
		
		
		sc.close();
	}
	//원의 면적 계산
	public static void getArea(
			double Area[], double radius[],double PI){
		
		Area[1] = (radius[1]*radius[1])*PI;
	}
	
	//원의 둘레 계산
	public static void getperimeter(
			double perimeter[], double radius[],double PI){
		perimeter[1] = (radius[1] *2)*PI;
	}
	

}
